<!doctype html>
<html>
<head>
    <title>站点管理</title>
    <?php $this->load->module('admin/index/page_header');?>
    <link rel="stylesheet" type="text/css" href="<?php echo URLPRE;?>static/public/Lib/webuploader/webuploader.css">
    <!--引入JS-->
    <script type="text/javascript" src="<?php echo URLPRE;?>static/public/Lib/webuploader/webuploader.js"></script>
    <link href="<?php echo URLPRE;?>static/admin/css/font_icon.css" rel="stylesheet" />

</head>
<body>

<div class="wrap">
<div id="home_toptip"></div>
<div class="table_full">
<form class="formvalidate" action="" method="post">
    <div class="h_a clearfix">站点管理 <a href="<?php echo site_url('admin/index')?>"><em class="red">当前站点ID: <?php echo $GLOBALS['sid']?> </em></a><a style="float:right" href="<?php echo site_url('admin/index/logout')?>">退出登录</a></div>
<div class="nav">
    <ul class="cc tab" id="conf_menu">
        <li <?php if($_GET['linshi']){echo 'class="current"';}?>><a href="<?php echo site_url('admin/site/index?linshi=1');?>">临时域名站点列表</a></li>
        <li <?php if(!$_GET['linshi']){echo 'class="current"';}?>><a href="<?php echo site_url('admin/site/index');?>">已上线站点列表</a></li>
        <li><a href="<?php echo site_url('admin/site/add');?>">添加站点</a></li>
    </ul>
</div>
<div class="table_list">
<div class="h_a">站点列表&nbsp;(<font color="#228b22"><?php echo count($site_list)?>个</font>)</div>
<table width="100%" class="tab_label" id="general_config">
    <tr>
        <td width="50" align="middle"><b>操作</b></td>
        <td width="50"><b>站点ID</b></td>
        <td><b>网站名称</b></td>
        <td><b>网址</b></td>
        <td><b>模板</b></td>
<!--        <td width="60"><b>站长</b></td>-->
        <td><b>登录帐号</b></td>
        <td><b>站点类型</b></td>
<!--        <td width="60"><b>联系方式</b></td>-->
        <td><b>开启时间</b></td>
    </tr>
    <?php foreach ($site_list as $k => $site) { ?>
        <tr  style="background-color:<?php echo $k %2 ? '#f8f8f8' : '#f2f2f2'?>">
            <td class="btn_min" align="left">
                <div class="operat hidden">
                    <a class="icon-pencil" href="<?php echo site_url('admin/site/edit/?url='.urlencode($site['url']));?>">编辑</a>
                </div>
            </td>
            <td><?php echo $site['sid']?></td>
            <td><?php echo $site['status'] == 1 ? '<em style="background:url() no-repeat center center;height:10px;width:10px;display:inline-block;vertical-align:middle"></em> ' : '<em style="background:url() no-repeat center center;height:10px;width:10px;display:inline-block;vertical-align:middle"></em> ';?><a href="<?php echo $site['url'];?>" target="_blank"><?php echo $site['name']?></a></td>
            <td><?php echo $site['url'];?></td>
            <td><?php echo $site['site_templatename'];?></td>
<!--            <td>--><?php //echo $site['master'];?><!--</td>-->
            <td><?php echo $site['founder'];?></td>
            <td><?php echo $site['type'];?></td>
<!--            <td>--><?php //echo $site['mobile'];?><!--</td>-->
            <td><?php echo substr($site['dateline'],0, -3)?></td>
        </tr>
    <?php }?>
</table>
</div>
</form>
</div>
</div>
<script type="text/javascript">
    $(function(){
    });
</script>
</body>
</html>